package ynu.lcy.elememicroserviceserviceclient.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import ynu.lcy.dto.cart.UpdateCartRequestDTO;
import ynu.lcy.entity.Cart;
import ynu.lcy.entity.CartFoodItem;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 购物车服务
 * @author 梁超映
 * */
@FeignClient(name = "eleme-microservice-business",path = "/api/cart/inner",contextId="cartFeignClient")
public interface CartFeignClient {

    /**
     * 获取指定购物车
     *
     * @param cartId cartId
     * @return 购物车
     */
    @GetMapping("/get")
    Cart get(@RequestParam("cartId") long cartId);

}
